Optimal. Leaf size=30 \[ \frac{c \log (x)}{a}-\frac{(b c-a d) \log (a+b x)}{a b} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0506808, antiderivative size = 30, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.062 \[ \frac{c \log (x)}{a}-\frac{(b c-a d) \log (a+b x)}{a b} \]
Antiderivative was successfully verified.
[In] Int[(c + d*x)/(x*(a + b*x)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 11.8357, size = 22, normalized size = 0.73 \[ \frac{c \log{\left (x \right )}}{a} + \frac{\left (a d - b c\right ) \log{\left (a + b x \right )}}{a b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((d*x+c)/x/(b*x+a),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0156811, size = 29, normalized size = 0.97 \[ \frac{(a d-b c) \log (a+b x)}{a b}+\frac{c \log (x)}{a} \]
Antiderivative was successfully verified.
[In] Integrate[(c + d*x)/(x*(a + b*x)),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.007, size = 32, normalized size = 1.1 \[{\frac{c\ln \left ( x \right ) }{a}}+{\frac{\ln \left ( bx+a \right ) d}{b}}-{\frac{\ln \left ( bx+a \right ) c}{a}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((d*x+c)/x/(b*x+a),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.34596, size = 41, normalized size = 1.37 \[ \frac{c \log \left (x\right )}{a} - \frac{{\left (b c - a d\right )} \log \left (b x + a\right )}{a b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x + c)/((b*x + a)*x),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.208178, size = 39, normalized size = 1.3 \[ \frac{b c \log \left (x\right ) -{\left (b c - a d\right )} \log \left (b x + a\right )}{a b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x + c)/((b*x + a)*x),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 2.09683, size = 41, normalized size = 1.37 \[ \frac{c \log{\left (x \right )}}{a} + \frac{\left (a d - b c\right ) \log{\left (x + \frac{- a c + \frac{a \left (a d - b c\right )}{b}}{a d - 2 b c} \right )}}{a b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x+c)/x/(b*x+a),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.264264, size = 43, normalized size = 1.43 \[ \frac{c{\rm ln}\left ({\left | x \right |}\right )}{a} - \frac{{\left (b c - a d\right )}{\rm ln}\left ({\left | b x + a \right |}\right )}{a b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x + c)/((b*x + a)*x),x, algorithm="giac")
[Out]